package org.abacus.core.model.generic;

public class Model<ID> implements java.io.Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 396132484930623793L;
	private ID pk;



	public ID getPk() {
		return pk;
	}

	public void setPk(ID pk) {
		this.pk = pk;
	}

	private String guid;

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((guid == null) ? 0 : guid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Model<?> other = (Model<?>) obj;
		if (guid == null) {
			if (other.guid != null)
				return false;
		} else if (!guid.equals(other.guid))
			return false;
		return true;
	}

}
